package com.jack006.api.controller.user;

import com.jack006.grace.result.GraceJSONResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;

/**
 * @Classname AppUserMngControllerApi
 * @Description 用户管理相关的接口定义
 * @Date 2021-06-10 08:15
 * @Created by jack
 */
@Api(value = "用户管理相关的接口定义",tags = "用户管理相关的接口定义功能的 Controller")
@RequestMapping("/appUser")
public interface AppUserMngControllerApi {


    @ApiOperation(value = "查询网站用户",notes = "查询网站用户",httpMethod = "POST")
    @PostMapping("/queryAll")
    GraceJSONResult queryAll(@RequestParam("nickname") String nickname,
                             @RequestParam("status") Integer status,
                             @RequestParam("nickname") Date startDate,
                             @RequestParam("startDate") Date endDate,
                             @RequestParam("page") Integer page,
                             @RequestParam("pageSize") Integer pageSize);

    @ApiOperation(value = "查看用户详情",notes = "查看用户详情",httpMethod = "POST")
    @PostMapping("/userDetail")
    GraceJSONResult userDetail(@RequestParam("userId") String userId);

    @ApiOperation(value = "冻结或解冻用户",notes = "冻结或解冻用户",httpMethod = "POST")
    @PostMapping("/freezeUserOrNot")
    GraceJSONResult freezeUserOrNot(@RequestParam("userId") String userId,
                                    @RequestParam("doStatus") Integer doStatus);

}
